package com.imooc.code;

import javax.servlet.http.HttpServletRequest;

import com.imooc.security.core.validate.code.ImageCode;
import com.imooc.security.core.validate.code.ValidateCodeGenerator;

/**
 * @ClassName DemoImageCodeGenerator.java
 * @Description 用户自定义的图形验证码生成逻辑
 * @author Jon
 * @date 2018年6月1日 下午2:58:03
 */
//@Component("imageCodeGenerator")//此注入的bean会在验证码生成逻辑配置文件中进行判断
public class DemoImageCodeGenerator implements ValidateCodeGenerator {

	@Override
	public ImageCode createImageCode(HttpServletRequest request) {
		System.out.println("=========这是新的验证码生成代码=====");
		return null;
	}

}
